/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proyectotsm;

import java.awt.image.BufferedImage;

/**
 * Clase Tesela.java
 * 
 * Nos define el tipo de dato tesela.
 *
 * @author Srgank
 * @author JuanCarlos
 * @author Gabriel
 */
public class Tesela {

    // Atributos
    private int ancho;
    private int alto;
    private int x;
    private int y;
    private int xencontrada;
    private int yencontrada;
    private BufferedImage image;

    // Constructor de la clase
    public Tesela(int ancho, int alto, int x, int y, BufferedImage image) {
        this.ancho = ancho;
        this.alto = alto;
        this.x = x;
        this.y = y;
        this.image = image;
    }

    // Metodos GETTERS y SETTERS
    public void setImage(BufferedImage image) {
        this.image = image;
    }

    public int getXencontrada() {
        return xencontrada;
    }

    public void setXencontrada(int xencontrada) {
        this.xencontrada = xencontrada;
    }

    public int getYencontrada() {
        return yencontrada;
    }

    public void setYencontrada(int yencontrada) {
        this.yencontrada = yencontrada;
    }

    public int getAlto() {
        return alto;
    }

    public int getAncho() {
        return ancho;
    }

    public BufferedImage getImage() {
        return image;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }    
}
